package com.ddwl.schema.bo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/6/16 20:14
 */
@ApiModel("设备分享Bo")
@Setter
@Getter
public class DeviceShareBo {

    @NotNull(message = "宝贝为空")
    @ApiModelProperty("Mac地址")
    private String mac;
    @NotNull(message = "手机号码为空")
    @Pattern(regexp = "^(\\s{0})|(1\\d{10})$", message = "手机号码格式错误")
    @ApiModelProperty("手机号码")
    private String mobile;
    @ApiModelProperty(value = "用户ID", hidden = true)
    private String userId;
}
